package com.ruoyi.interview.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.interview.mapper.TbRecordsMapper;
import com.ruoyi.interview.domain.TbRecords;
import com.ruoyi.interview.service.ITbRecordsService;

/**
 * 面试记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-27
 */
@Service
public class TbRecordsServiceImpl implements ITbRecordsService 
{
    @Autowired
    private TbRecordsMapper tbRecordsMapper;

    /**
     * 查询面试记录
     * 
     * @param id 面试记录主键
     * @return 面试记录
     */
    @Override
    public TbRecords selectTbRecordsById(Long id)
    {
        return tbRecordsMapper.selectTbRecordsById(id);
    }

    /**
     * 查询面试记录列表
     * 
     * @param tbRecords 面试记录
     * @return 面试记录
     */
    @Override
    public List<TbRecords> selectTbRecordsList(TbRecords tbRecords)
    {
        return tbRecordsMapper.selectTbRecordsList(tbRecords);
    }

    /**
     * 新增面试记录
     * 
     * @param tbRecords 面试记录
     * @return 结果
     */
    @Override
    public int insertTbRecords(TbRecords tbRecords)
    {
        return tbRecordsMapper.insertTbRecords(tbRecords);
    }

    /**
     * 修改面试记录
     * 
     * @param tbRecords 面试记录
     * @return 结果
     */
    @Override
    public int updateTbRecords(TbRecords tbRecords)
    {
        return tbRecordsMapper.updateTbRecords(tbRecords);
    }

    /**
     * 批量删除面试记录
     * 
     * @param ids 需要删除的面试记录主键
     * @return 结果
     */
    @Override
    public int deleteTbRecordsByIds(Long[] ids)
    {
        return tbRecordsMapper.deleteTbRecordsByIds(ids);
    }

    /**
     * 删除面试记录信息
     * 
     * @param id 面试记录主键
     * @return 结果
     */
    @Override
    public int deleteTbRecordsById(Long id)
    {
        return tbRecordsMapper.deleteTbRecordsById(id);
    }
}
